<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <style>
        *{padding:0;margin:0;box-sizing: border-box;font-size: 14px;}
        a{text-decoration: none;color:#333;}
        a:hover, a:visited, a:link, a:active {
            color:#333;
        }
        ul,ol{list-style: none;}

        #container{
            display: block;
            margin: auto;
            width: 1000px;
            border-style: solid;
            border-color:gray;
        }
        #header{
            height: 50px;
        }
        .headertop{
            text-align: center;
            margin-top: 40px;
            display: block;
        }
        #articletopul{
            display: flex;
            justify-content: space-around;
        }
        #myIfrma{
            width: 1000px;
            height: 500px;

        }
    </style>
</head>
<body>
<container id="container">
    <header id="header">
        <div class="headertop"><span>${user.getUsername()}的个人中心</span><span><a href="updateUserInfo.jsp" class="a_mian">--->编辑信息</a></span></div>
        <div class="headerbutton">
            <hr class="hr">
        </div>
    </header>
    <article id="article">
        <div class="articletop">
            <ul id="articletopul">
                <li><a  href="adressList.jsp" class="a_mian">我的地址</a></li>
                <li><a href="ljh/order/getAllOrders" class="a_mian">我的订单</a></li>
                <li><a href="discount.jsp" class="a_mian">我的优惠卷</a></li>
                <li><a href="cart.do" class="a_mian">我的购物车</a></li>
            </ul>
        </div>
        <div class="articlebutton">
            <hr class="hr">
        </div>
    </article>
    <footer id="footer">
        <iframe src="images/personalIMG.png" id="myIfrma"></iframe>
<%--        <div class="main">--%>
<%--            <h1>详细</h1>--%>
<%--        </div>--%>
    </footer>
</container>
<script src="js/jquery-3.5.1.js"></script>
<script>
    $(document).ready(function (event) {
        $(".a_mian").on("click",function (event) {
            event.preventDefault();
            //$(".main").load(this.href);
            $("#myIfrma").attr('src',this.href);
        });
    });
</script>
</body>

</html>